Skip to content

ReactiveViewHost class

Defined in

Namespace: ReactiveUI Assembly: ReactiveUI.dll Full name: ReactiveUI.ReactiveViewHost<T> Modifiers: public abstract

Summary

View source

        A class that implements the Android ViewHolder pattern with a ViewModel.
        Use it along with GetViewHost.
        

Applies to

net10.0-android36.0, net9.0-android35.0

Class hierarchy
classDiagram
class ReactiveViewHost~T~
class LayoutViewHost
LayoutViewHost <|-- ReactiveViewHost~T~
class IViewFor~TViewModel~ {
    <>
}
IViewFor~TViewModel~ <|.. ReactiveViewHost~T~
class IViewFor {
    <>
}
IViewFor <|.. ReactiveViewHost~T~
class IActivatableView {
    <>
}
IActivatableView <|.. ReactiveViewHost~T~
class IReactiveNotifyPropertyChanged~ReactiveViewHost~TViewModel~~ {
    <>
}
IReactiveNotifyPropertyChanged~ReactiveViewHost~TViewModel~~ <|.. ReactiveViewHost~T~
class IReactiveObject {
    <>
}
IReactiveObject <|.. ReactiveViewHost~T~
class INotifyPropertyChanged {
    <>
}
INotifyPropertyChanged <|.. ReactiveViewHost~T~
class INotifyPropertyChanging {
    <>
}
INotifyPropertyChanging <|.. ReactiveViewHost~T~
class IEnableLogger {
    <>
}
IEnableLogger <|.. ReactiveViewHost~T~

Inherits from: LayoutViewHost

Implements: IViewFor, IViewFor, IActivatableView, IReactiveNotifyPropertyChanged>, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger

Remarks

Trimming/AOT: Prefer constructors that do not enable legacy auto-wireup. These paths avoid reflection and do not allocate property metadata.

Compatibility: A legacy constructor is provided that enables reflection-based wiring and initializes allPublicProperties for older infrastructure.

Constructors

NameSummary
.ctorInitializes a new instance of the [ReactiveViewHost](# class.

Properties

NameSummary
ViewModelGets or sets the strongly typed view model. Override this property to integrate with the platform's binding system.
ChangingGets an observable that fires before a property is about to be changed. Note that this should not fire duplicate change notifications if a property is set to the same...
ChangedGets an Observable that fires after a property has changed. Note that this should not fire duplicate change notifications if a property is set to the same value multiple...
ThrownExceptionsGets an observable of exceptions thrown during reactive operations on this instance.

Fields

NameSummary
allPublicPropertiesAll public properties.

Methods

NameSummary
SuppressChangeNotificationsWhen this method is called, an object will not fire change notifications (neither traditional nor observable) until the return value is disposed.
AreChangeNotificationsEnabledGets a value indicating whether change notifications are enabled.

Events

NameSummary
PropertyChanged
PropertyChanging
Inherited members